<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <title>Ajax</title>
        <script src="../../py/system.js" type="text/javascript"></script>
        <script src="../../py/system/ajax/ajax.js" type="text/javascript"></script>
		
		<script src="../../common/project/project.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/default.js" type="text/javascript"></script>
		<script src="../../common/assets/scripts/debug.js" type="text/javascript"></script>
    </head>
    <body>
        <script>
            var url = './ajax.html';
            var ajax = new Ajax({
                url: url,
                onsuccess: function(m){
                    log(m);
                },
                data: {
                    "d1": "内容"
                },
                oncomplete: function(m){
                    log("finish->" + m);
                },
                onerror: trace.error,
                ontimeout: log
            });
            var fns = [["Ajax.prototype.send", function(){
                ajax.send();
            }], ["ajax.get", function(){
                Ajax.get(url, {
                    "asd": "个"
                }, log);
            }
            ]];
            
        </script>
    </body>
</html>
